﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;

public partial class Admin_VacancyManager : System.Web.UI.Page
{
    AddminMethord AM = new AddminMethord();
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }
    public void LoadData()
    {
        try
        {
            DataSet ds = AM.LoadVacancyInfor();
            DataTable tb = ds.Tables[0];
            gvwHrManager.DataSource = tb.DefaultView;
            gvwHrManager.DataBind();
            for (int i = 0; i < gvwHrManager.Rows.Count; i++)
            {
                gvwHrManager.Rows[i].Cells[5].Text = tb.Rows[i]["DateFulfilled"].ToString().Substring(0, tb.Rows[i]["DateFulfilled"].ToString().IndexOf(" "));
            }
        }
        catch (Exception ex)
        {
        }
    }
    protected void btnSearch_Click(object sender, EventArgs e)
    {

    }
}